x86: clean up PV emulation code
authorWei Liu <wei.liu2@citrix.com>
Mon, 5 Jun 2017 14:16:17 +0000 (15:16 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 23 Jun 2017 15:06:19 +0000 (16:06 +0100)
commitc7c623910d44fe4969cfa2508f68b27896e03dba
tree9f914c675d27a63b6acbe7a2d70dce78b51394eb
parent2ff229643b739e2fd0cd0536ee9fca506cfa92f8
x86: clean up PV emulation code

Replace bool_t with bool. Fix coding style issues. Add spaces around
binary ops. Use 1U for shifting. Eliminate TOGGLE_MODE.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/pv/emul-gate-op.c
xen/arch/x86/pv/emul-priv-op.c